package com.atguigu.lease.common.utils;

import java.util.Random;

/*
*  生成验证码的工具类
* */
public class VerifyCodeUtil {

    public static String generateVerifyCode(int len){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < len; i++) {
            sb.append(new Random().nextInt(10));
        }
        return sb.toString();
    }
}
